//
//  AppController.h
//  Friday
//
//  Created by josy on 12/13/09.
//  Copyright 2009 Apple. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <Carbon/Carbon.h>

@class MyGrowlDelegate;
@class MyRequest;
@class SBJSON;

@interface AppController : NSObject {
	IBOutlet NSWindow* win ; 
	IBOutlet NSTextField* sub ; 
	IBOutlet NSTextField* bdy ; 
	IBOutlet NSWindow* logWin;
	IBOutlet NSTextField* logTf;
	SBJSON* parser;
	MyGrowlDelegate* growlDelegate;
	
	NSMutableDictionary* requestTemplates;
	NSDictionary* asyncKeyList;
	MyRequest* currentRequest;
}
-(void)awakeFromNib;
-(void)showActionForKey:(int)windowNum;
-(void)sendMsg:(MyRequest*)request;
-(IBAction)sendRequestToServer:(id)sender;
-(IBAction)hideLogWindow:(id)sender;
-(IBAction)showLogWindow:(id)sender;
-(void)loadRequestData;
-(void)loadAsyncKeys;
-(void)regGlobalKeys;
-(void)	showLog:(NSString*) line;
@end